/**
 * @(#) KLineOriginPoint.java
 */

package org.vsg.stock.core.indicator.coordinate.origpoint;

import org.vsg.stock.core.KLineStock;
import org.vsg.stock.core.kline.DailyKLineStock;


/**
 * X 坐标采用 天为默认'1'单位 , Y 坐标采用收盘价为默认'1'单位
 * @author Bill vison
 */
public class KLineOpenOriginalDataPoint extends KLineOriginalDataPoint {
	
	public KLineOpenOriginalDataPoint(DailyKLineStock dailyKLineStock) {
		super(dailyKLineStock);
		// TODO Auto-generated constructor stub
	}

	private static final long serialVersionUID = -8319152171791632272L;

	private KLineStock.Attribute attribute = KLineStock.Attribute.OPEN;


	/**
	 * @return 
	 */
	@Override
	public double getYvalue() {
		// TODO Auto-generated method stub
		return this.getDailyKLineStk().getOpen();
	}


	public KLineStock.Attribute getAttribute() {
		return attribute;
	}



	
	
}
